package com.wish.wishhouse_resource.mapper;

import com.wish.wishhouse_resource.entity.TbRoomInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import dto.houseResourceDto.RoomDto;
import org.springframework.stereotype.Repository;
import dto.houseResourceDto.PageRoomStatusDto;
import vo.TbRoomInfoResponseVo;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangshuxin
 * @since 2021-03-28
 */
@Repository
public interface TbRoomInfoMapper extends BaseMapper<TbRoomInfo> {

    List<TbRoomInfo> listAll(RoomDto roomDto);

    TbRoomInfo queryGetOne(String recommended);

    /**
     * 分散式
     * @param pageRoomStatusDto
     * @return
     */
    List<TbRoomInfoResponseVo> roomStatusListFs(PageRoomStatusDto pageRoomStatusDto);

    /**
     * 集中式
     * @param pageRoomStatusDto
     * @return
     */
    List<TbRoomInfoResponseVo> roomStatusListJz(PageRoomStatusDto pageRoomStatusDto);

    /**
     * 集中式 - 详细
     * @param pageRoomStatusDto
     * @return
     */
    List<TbRoomInfoResponseVo> roomStatusListDetailJz(PageRoomStatusDto pageRoomStatusDto);
}
